SRCS := $(shell find -type f -name '*.c')

#OBJS += main.o
#OBJS += hello.o
OBJS := $(SRCS:.c=.o)

TARGET := main

.PHONY :all clean

all : $(TARGET)
	@./$(TARGET)

$(TARGET) : $(OBJS)
	@$(CC) -o $@ $^
	
clean:
	-@echo '正在清理'
	-@rm -f main main.o hello.o
	-@echo '清理完成'